
function init(){
    document.getElementById("tp1").style.display = "none";
    document.getElementById("tp2").style.display = "none";
}

function fn(id){
    document.getElementById("tp1").style.display = "none";
    document.getElementById("tp2").style.display = "none";
    document.getElementById(id).style.display = "block";
}

function fun(){
    var picArr = document.getElementsByTagName("div");
    for(var i=0; i<picArr.length; i++){
        picArr[i].style.display = "none";
    }

    var arr = document.getElementsByName("ts");
    for(var i=0; i<arr.length; i++){
       if(arr[i].checked){
            document.getElementById("tp"+(i+1)).style.display = "block";
       }
    }
}